package org.feiye.studyday02;

public class MacBook {

	public static void main(String[] args) {
		// 强制类型转换规则
		// 去年Apple笔记本所占市场份额是20，今年增长市场份额是9.8，求今年所占份额？
		int before = 20;
		double rise = 9.8;
		int thisYear = 0;
		thisYear = (int) (before + rise);
		System.out.println("今年所占的市场份额是：" + thisYear);
	}

}
